package com.aspose.cells;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

class znz {
   ArrayList a = new ArrayList();
   HashMap b = new HashMap();

   static znz a(Workbook var0) {
      znz var1 = new znz();
      ArrayList var2 = var0.getWorksheets().z();
      Iterator var3 = var2.iterator();

      while(var3.hasNext()) {
         Font var4 = (Font)var3.next();
         boolean var5 = false;

         int var6;
         for(var6 = 0; var6 < var1.a.size(); ++var6) {
            Font var7 = (Font)var1.a.get(var6);
            if (var4.a(var7) && var4.k() == var7.k()) {
               var5 = true;
               if (!var1.b.containsKey(var4.j())) {
                  var1.b.put(var4.j(), var6);
               }
               break;
            }
         }

         if (!var5) {
            var6 = com.aspose.cells.b.a.a.ze.a(var1.a, (Object)var4);
            if (!var1.b.containsKey(var4.j())) {
               var1.b.put(var4.j(), var6);
            }
         }
      }

      return var1;
   }
}
